<?php
function __autoload($class_name) {
    require_once 'alias.php/php/'. $class_name . '.class.php';
}

$controller = new HtmlController();

$controller->getPageContent();


if ($controller->validateAuthorization())
{
	echo '<HTML>';
	$controller->writeHtmlHeader();

	echo '<BODY>';

	$controller->writeHtmlLayout();	

	$controller->writeHtmlContent();	

	echo '</BODY>';
	echo '</HTML>';
}
else
{
	$controller->logon();
}

$controller->end();

?>

